DimenDiagonalDp

EN Utility object for handling SDP (Scalable Dp) dimensions from Java.

PT Objeto utilitário para manipulação de dimensões SDP (Scalable Dp) no Java.

Functions

Link copied to clipboard
fun dghdp(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp). PT Resolução rápida para Altura da Tela (hdp).

Link copied to clipboard
fun dghdpa(context: Context, value: Int): Float
Link copied to clipboard
fun dghdpi(context: Context, value: Int): Float
Link copied to clipboard
fun dghdpia(context: Context, value: Int): Float
Link copied to clipboard
fun dghdpLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp), but in landscape orientation it acts as Screen Width (wdp).

Link copied to clipboard
fun dghdpLwa(context: Context, value: Int): Float
Link copied to clipboard
fun dghdpLwi(context: Context, value: Int): Float
Link copied to clipboard
fun dghdpLwia(context: Context, value: Int): Float
Link copied to clipboard
fun dghdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (hdp) with UiModeType override.

Link copied to clipboard
fun dghdpPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp), but in portrait orientation it acts as Screen Width (wdp).

Link copied to clipboard
fun dghdpPwa(context: Context, value: Int): Float
Link copied to clipboard
fun dghdpPwi(context: Context, value: Int): Float
Link copied to clipboard
fun dghdpPwia(context: Context, value: Int): Float
Link copied to clipboard
fun dghdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hDP) conditional scaling.

Link copied to clipboard
fun dghdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.HEIGHT, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (hdp) with rotation override.

Link copied to clipboard
fun dghdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hDP) context conditional scaling.

Link copied to clipboard
fun dgsdp(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp). PT Resolução rápida para Smallest Width (sdp).

Link copied to clipboard
fun dgsdpa(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpa) with aspect ratio. PT Resolução rápida para Smallest Width (sdpa) com proporção de tela.

Link copied to clipboard
fun dgsdpi(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpi) ignoring multi-windows. PT Resolução rápida para Smallest Width (sdpi) ignorando janelas múltiplas.

Link copied to clipboard
fun dgsdpia(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpia) ignoring multi-windows and with aspect ratio. PT Resolução rápida para Smallest Width (sdpia) ignorando janelas múltiplas e com proporção.

Link copied to clipboard
fun dgsdpLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in landscape orientation it acts as Screen Height (hdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação paisagem atua como Altura da Tela (hdp).

Link copied to clipboard
fun dgsdpLha(context: Context, value: Int): Float
Link copied to clipboard
fun dgsdpLhi(context: Context, value: Int): Float
Link copied to clipboard
fun dgsdpLhia(context: Context, value: Int): Float
Link copied to clipboard
fun dgsdpLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in landscape orientation it acts as Screen Width (wdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação paisagem atua como Largura da Tela (wdp).

Link copied to clipboard
fun dgsdpLwa(context: Context, value: Int): Float
Link copied to clipboard
fun dgsdpLwi(context: Context, value: Int): Float
Link copied to clipboard
fun dgsdpLwia(context: Context, value: Int): Float
Link copied to clipboard
fun dgsdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (sdp) with UiModeType override.

Link copied to clipboard
fun dgsdpPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in portrait orientation it acts as Screen Height (hdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação retrato atua como Altura da Tela (hdp).

Link copied to clipboard
fun dgsdpPha(context: Context, value: Int): Float
Link copied to clipboard
fun dgsdpPhi(context: Context, value: Int): Float
Link copied to clipboard
fun dgsdpPhia(context: Context, value: Int): Float
Link copied to clipboard
fun dgsdpPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in portrait orientation it acts as Screen Width (wdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação retrato atua como Largura da Tela (wdp).

Link copied to clipboard
fun dgsdpPwa(context: Context, value: Int): Float
Link copied to clipboard
fun dgsdpPwi(context: Context, value: Int): Float
Link copied to clipboard
fun dgsdpPwia(context: Context, value: Int): Float
Link copied to clipboard
fun dgsdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swDP) conditional scaling.

Link copied to clipboard
fun dgsdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.SMALL_WIDTH, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (sdp) with rotation override.

Link copied to clipboard
fun dgsdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swDP) context conditional scaling.

Link copied to clipboard
fun dgwdp(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp). PT Resolução rápida para Largura da Tela (wdp).

Link copied to clipboard
fun dgwdpa(context: Context, value: Int): Float
Link copied to clipboard
fun dgwdpi(context: Context, value: Int): Float
Link copied to clipboard
fun dgwdpia(context: Context, value: Int): Float
Link copied to clipboard
fun dgwdpLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp), but in landscape orientation it acts as Screen Height (hdp).

Link copied to clipboard
fun dgwdpLha(context: Context, value: Int): Float
Link copied to clipboard
fun dgwdpLhi(context: Context, value: Int): Float
Link copied to clipboard
fun dgwdpLhia(context: Context, value: Int): Float
Link copied to clipboard
fun dgwdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (wdp) with UiModeType override.

Link copied to clipboard
fun dgwdpPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp), but in portrait orientation it acts as Screen Height (hdp).

Link copied to clipboard
fun dgwdpPha(context: Context, value: Int): Float
Link copied to clipboard
fun dgwdpPhi(context: Context, value: Int): Float
Link copied to clipboard
fun dgwdpPhia(context: Context, value: Int): Float
Link copied to clipboard
fun dgwdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wDP) conditional scaling.

Link copied to clipboard
fun dgwdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.WIDTH, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (wdp) with rotation override.

Link copied to clipboard
fun dgwdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wDP) context conditional scaling.

Link copied to clipboard
fun getDimensionInDp(context: Context, qualifier: DpQualifier, value: Int, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic DP scaling function for Java. PT Função de escala DP genérica para Java.

Link copied to clipboard
fun getDimensionInPx(context: Context, qualifier: DpQualifier, value: Int, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java. PT Função de escala genérica para Java.

Link copied to clipboard
fun scaled(initialBaseValue: Float): DimenDiagonal

EN Starts the build chain for the custom dimension DimenDiagonal from a base Float.

fun scaled(initialBaseValue: Int): DimenDiagonal

EN Starts the build chain for the custom dimension DimenDiagonal from a base Int. PT Inicia a cadeia de construção para a dimensão customizada DimenDiagonal a partir de um Int base.

Link copied to clipboard

EN Eagerly initializes DimenCache (persistence / DataStore) so the first resolution on a hot path avoids lazy-init work. PT Inicializa o DimenCache antecipadamente para evitar custo lazy no primeiro uso.